[dockers][platform-monitor] Add chassis_db_init to platform monitor tasks#7596
Merged
jleveque merged 3 commits intosonic-net:masterfrom May 28, 2021
Merged
[dockers][platform-monitor] Add chassis_db_init to platform monitor tasks#7596jleveque merged 3 commits intosonic-net:masterfrom
jleveque merged 3 commits intosonic-net:masterfrom
Conversation
Contributor
|
PR title mentions |
Contributor
Author
|
Whoops, copied from the internal system prior to the name change, thanks. Up to date now. |
liat-grozovik
approved these changes
May 23, 2021
Collaborator
|
@robocoder99 as the dependent PR is merged, please check submodule is updated and then we can move forward with the merge process. |
Contributor
Author
|
Submodule bump PR is here #7709 may proceed once this merge completes. Please let me know if anything else is needed. |
jleveque
approved these changes
May 28, 2021
4 tasks
4 tasks
wangxin
pushed a commit
to sonic-net/sonic-mgmt
that referenced
this pull request
Jul 8, 2021
What is the motivation for this PR? After sonic-net/sonic-buildimage#7596 have been merged test_watchdog_reboot started failing on check_pmon_daemons. How did you do it? Excluded chassis_db_init from checking as it is executed only one time and exiting. How did you verify/test it? Run watchdog_reboot. TC passed Any platform specific information? SONiC Software Version: SONiC.master.17861-dirty-20210602.081854 Distribution: Debian 10.9 Kernel: 4.19.0-12-2-amd64 Build commit: e50b6fc Build date: Wed Jun 2 13:33:37 UTC 2021 Platform: x86_64-arista_7170_64c HwSKU: Arista-7170-64C ASIC: barefoot Signed-off-by: Roman Savchuk <romanx.savchuk@intel.com>
carl-nokia
pushed a commit
to carl-nokia/sonic-buildimage
that referenced
this pull request
Aug 7, 2021
…asks (sonic-net#7596) I added `chassis_db_init` to the startup tasks for the `docker-platform-monitor` docker so that the script is run on startup of the switch and the chassis info is correctly provisioned to STATE_DB. Depends on sonic-net/sonic-platform-daemons#183
vmittal-msft
pushed a commit
to vmittal-msft/sonic-mgmt
that referenced
this pull request
Sep 28, 2021
What is the motivation for this PR? After sonic-net/sonic-buildimage#7596 have been merged test_watchdog_reboot started failing on check_pmon_daemons. How did you do it? Excluded chassis_db_init from checking as it is executed only one time and exiting. How did you verify/test it? Run watchdog_reboot. TC passed Any platform specific information? SONiC Software Version: SONiC.master.17861-dirty-20210602.081854 Distribution: Debian 10.9 Kernel: 4.19.0-12-2-amd64 Build commit: e50b6fc Build date: Wed Jun 2 13:33:37 UTC 2021 Platform: x86_64-arista_7170_64c HwSKU: Arista-7170-64C ASIC: barefoot Signed-off-by: Roman Savchuk <romanx.savchuk@intel.com>
119064273
pushed a commit
to 119064273/sonic-mgmt
that referenced
this pull request
Jan 24, 2022
What is the motivation for this PR? After sonic-net/sonic-buildimage#7596 have been merged test_watchdog_reboot started failing on check_pmon_daemons. How did you do it? Excluded chassis_db_init from checking as it is executed only one time and exiting. How did you verify/test it? Run watchdog_reboot. TC passed Any platform specific information? SONiC Software Version: SONiC.master.17861-dirty-20210602.081854 Distribution: Debian 10.9 Kernel: 4.19.0-12-2-amd64 Build commit: e50b6fc Build date: Wed Jun 2 13:33:37 UTC 2021 Platform: x86_64-arista_7170_64c HwSKU: Arista-7170-64C ASIC: barefoot Signed-off-by: Roman Savchuk <romanx.savchuk@intel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why I did it
I added
chassis_db_initto the startup tasks for thedocker-platform-monitordocker so that the script is run on startup of the switch and the chassis info is correctly provisioned to STATE_DB.NOTE: THIS DEPENDS ON sonic-net/sonic-platform-daemons#183 DO NOT MERGE
How I did it
I modified the supervisord template in order to define the new task to be started.
How to verify it
Run
sudo redis-cli -n 6 hgetall "CHASSIS_INFO|chassis 1"Expected output (exact values will differ per platform)
Description for the changelog
[dockers][platform-monitor] Add chassis_db_init to platform monitor tasks
A picture of a cute animal (not mandatory but encouraged)